import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', name: "default", component: () => import("../views/PageIndex.vue") },
    // { path: '/post', name: "Post", component: () => import("../views/Post.vue") },
    // { path: '/department', name: "Department", component: () => import("../views/Department.vue") },
    // { path: '/Application/overtimeApplication', name: "overtimeApplication", component: () => import("../views/Application/OvertimeApplication.vue") },
    // { path: '/Approval/overtimeApproval', name: "overtimeApproval", component: () => import("../views/Approval/OvertimeApproval.vue") },
    // { path: '/Application/leaveApplication', name: "leaveApplication", component: () => import("../views/Application/LeaveApplication.vue") },
    // { path: '/Approval/leaveApproval', name: "leaveApproval", component: () => import("../views/Approval/LeaveApproval.vue") },
    // { path: '/Application/travelApplication', name: "travelApplication", component: () => import("../views/Application/TravelApplication.vue") },
    // { path: '/Approval/travelApproval', name: "travelApproval", component: () => import("../views/Approval/TravelApproval.vue") }
  ]
})


export const routerImports = {
  pageIndex: () => import("../views/PageIndex.vue"),
  post: () => import("../views/Post.vue"),
  department: () => import("../views/Department.vue"),
  overtimeApplication: () => import("../views/Application/OvertimeApplication.vue"),
  overtimeApproval: () => import("../views/Approval/OvertimeApproval.vue"),
  leaveApplication: () => import("../views/Application/LeaveApplication.vue"),
  leaveApproval: () => import("../views/Approval/LeaveApproval.vue"),
  travelApplication: () => import("../views/Application/TravelApplication.vue"),
  travelApproval: () => import("../views/Approval/TravelApproval.vue"),
  personalLeaveApprovalRecord: () => import("../views/Application/PersonalLeaveApprovalRecord.vue"),
  personalOvertimeApprovalRecord: () => import("../views/Application/PersonalOvertimeApprovalRecord.vue"),
  personalTravelApprovalRecord: () => import("../views/Application/PersonalTravelApprovalRecord.vue"),
  OvertimeApprovalRecord: () => import("../views/Approval/OvertimeApprovalRecord.vue"),
  LeaveApprovalRecord: () => import("../views/Approval/LeaveApprovalRecord.vue"),
  TravelApprovalRecord: () => import("../views/Approval/TravelApprovalRecord.vue"),
  employee: () => import("../views/Employee.vue"),
  salaryLevel: () => import("../views/SalaryLevel.vue"),
  achievement: () => import("../views/Achievement.vue"),
  attendance: () => import("../views/Attendance.vue"),
  workSchedule: () => import("../views/WorkSchedule.vue"),
  reward: () => import("../views/RewardAndPenalty/Reward.vue"),
  penalty: () => import("../views/RewardAndPenalty/Penalty.vue"),
  wageCount: () => import("../views/WageCount.vue"),
  admin: () => import("../views/Admin.vue"),
  deductionRule: () => import("../views/DeductionRule.vue")
};

export default router
